package test.other;

import static org.junit.Assert.*;

public class AssertUtil {
	public static void assertEquals(float expected, float actual) {
		AssertUtil.assertEquals(expected, actual, 0.0001f);
	}

	public static void assertEquals(float expected, float actual, float delta) {
		assertTrue(Math.abs(expected - actual) <= delta);
	}
	
	public static void assertEquals(double expected, double actual) {
		AssertUtil.assertEquals(expected, actual, 0.0001f);
	}

	public static void assertEquals(double expected, double actual, double delta) {
		assertTrue(Math.abs(expected - actual) <= delta);
	}
}
